
<div class="container">
    <div class="width680 left">
<!--        <div class="header-search-new">-->
<!--            <h1 class="font_400">-->
<!--			<span class="find-count-item">-->
<!--                Tìm thấy <strong>--><?php //echo $total_rows ?><!--</strong>-->
<!--                kết quả với từ khóa <span class="ss">"--><?php //echo $keyword; ?><!--"</span>-->
<!--            </span>-->
<!--            </h1>-->
<!--            <span class="list-select-area">-->
<!--                <select title="Tỉnh thành" name="city_id" id="city_id" onchange="change_area('?page=sph_search&amp;keywords=v%C3%A1y&amp;display_type=horizontal');">-->
<!--                    <option value="0">--Toàn Quốc--</option>-->
<!--                    <option value="29">Hồ Chí Minh</option>-->
<!--                    <option value="22" selected="">Hà Nội</option>-->
<!--                    <option value="15">Đà Nẵng</option>-->
<!--                    <option value="26">Hải Phòng</option>-->
<!--                    <option value="8">Bình Dương</option>-->
<!--                    <option value="other">Các tỉnh khác</option>-->
<!--                </select>-->
<!--            </span>-->
<!---->
<!--            <div id="otherCate" onclick="overlayclose('otherCate');" style="display: none; left: 513px; top: 236px;"><div class="other"><a href="/search?keywords=váy&amp;cat_id=331&amp;city_id=22&amp;display_type=horizontal">Xe hơi <font style="color: #5a7e92;font-weight: normal;">(1330)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=107&amp;city_id=22&amp;display_type=horizontal">Mẹ và bé <font style="color: #5a7e92;font-weight: normal;">(950)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=41&amp;city_id=22&amp;display_type=horizontal">Hàng Order <font style="color: #5a7e92;font-weight: normal;">(438)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=51&amp;city_id=22&amp;display_type=horizontal">Giày dép nữ <font style="color: #5a7e92;font-weight: normal;">(293)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=614&amp;city_id=22&amp;display_type=horizontal">Đồ Made in Vietnam <font style="color: #5a7e92;font-weight: normal;">(257)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=104&amp;city_id=22&amp;display_type=horizontal">Hàng hiệu <font style="color: #5a7e92;font-weight: normal;">(161)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=103&amp;city_id=22&amp;display_type=horizontal">Mua bán nhà đất <font style="color: #5a7e92;font-weight: normal;">(150)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=514&amp;city_id=22&amp;display_type=horizontal">Dịch vụ thời trang <font style="color: #5a7e92;font-weight: normal;">(136)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=1&amp;city_id=22&amp;display_type=horizontal">Thời trang Nam <font style="color: #5a7e92;font-weight: normal;">(127)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=174&amp;city_id=22&amp;display_type=horizontal">Laptop và Máy tính <font style="color: #5a7e92;font-weight: normal;">(123)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=332&amp;city_id=22&amp;display_type=horizontal">Xe khách, Xe tải <font style="color: #5a7e92;font-weight: normal;">(116)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=605&amp;city_id=22&amp;display_type=horizontal">Thanh lý/ Đổi đồ <font style="color: #5a7e92;font-weight: normal;">(89)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=61&amp;city_id=22&amp;display_type=horizontal">Mỹ phẩm nữ <font style="color: #5a7e92;font-weight: normal;">(66)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=109&amp;city_id=22&amp;display_type=horizontal">Tổng hợp <font style="color: #5a7e92;font-weight: normal;">(54)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=45&amp;city_id=22&amp;display_type=horizontal">Trang sức <font style="color: #5a7e92;font-weight: normal;">(44)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=625&amp;city_id=22&amp;display_type=horizontal">Dịch vụ làm đẹp <font style="color: #5a7e92;font-weight: normal;">(31)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=445&amp;city_id=22&amp;display_type=horizontal">Nước hoa nữ <font style="color: #5a7e92;font-weight: normal;">(17)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=451&amp;city_id=22&amp;display_type=horizontal">Nội thất gia đình <font style="color: #5a7e92;font-weight: normal;">(13)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=335&amp;city_id=22&amp;display_type=horizontal">Dịch vụ <font style="color: #5a7e92;font-weight: normal;">(10)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=607&amp;city_id=22&amp;display_type=horizontal">Khác <font style="color: #5a7e92;font-weight: normal;">(10)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=541&amp;city_id=22&amp;display_type=horizontal">Chợ Sim <font style="color: #5a7e92;font-weight: normal;">(9)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=79&amp;city_id=22&amp;display_type=horizontal">Điện máy <font style="color: #5a7e92;font-weight: normal;">(8)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=84&amp;city_id=22&amp;display_type=horizontal">Điện tử và âm thanh <font style="color: #5a7e92;font-weight: normal;">(7)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=603&amp;city_id=22&amp;display_type=horizontal">Dầu gội, Sữa tắm, Kem ủ <font style="color: #5a7e92;font-weight: normal;">(7)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=81&amp;city_id=22&amp;display_type=horizontal">Kỹ thuật số <font style="color: #5a7e92;font-weight: normal;">(3)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=592&amp;city_id=22&amp;display_type=horizontal">Đồ dùng bếp <font style="color: #5a7e92;font-weight: normal;">(3)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=571&amp;city_id=22&amp;display_type=horizontal">Cho thuê nhà ở <font style="color: #5a7e92;font-weight: normal;">(2)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=657&amp;city_id=22&amp;display_type=horizontal">Xe hơi cũ <font style="color: #5a7e92;font-weight: normal;">(2)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=29&amp;city_id=22&amp;display_type=horizontal">Mỹ phẩm nam <font style="color: #5a7e92;font-weight: normal;">(1)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=82&amp;city_id=22&amp;display_type=horizontal">Thiết bị VP và Máy công nghiệp <font style="color: #5a7e92;font-weight: normal;">(1)</font></a></div><div class="other"><a href="/search?keywords=váy&amp;cat_id=661&amp;city_id=22&amp;display_type=horizontal">Chợ Tết <font style="color: #5a7e92;font-weight: normal;">(1)</font></a></div></div>-->
<!--            <ul class="result-in-category">-->
<!--                <li onclick="acive_tab_cat(this);" id="tab_x" class="active">-->
<!--                    <a href="/search?keywords=--><?php //echo $keyword; ?><!--">Tất cả <span style="color: #5a7e92;font-weight: normal;">(--><?php //echo $total_rows ?><!--)</span></a>-->
<!--                </li>-->
<!--                <li id="tab_0" onclick="javascript:acive_tab_cat(this);"><a href="/search?keywords=váy&amp;cat_id=30&amp;city_id=22&amp;display_type=horizontal">Thời trang nữ <font style="color: #5a7e92;font-weight: normal;">(13727)</font></a></li><li id="tab_1" onclick="javascript:acive_tab_cat(this);"><a href="/search?keywords=váy&amp;cat_id=31&amp;city_id=22&amp;display_type=horizontal">Thời trang Teen <font style="color: #5a7e92;font-weight: normal;">(2056)</font></a></li>-->
<!--                <li onclick="return overlay(this, 'otherCate', 'rightbottom')">-->
<!--                    <a rel="nofollow" href="javascript:void(0)">Danh mục khác</a>-->
<!--                    <a rel="nofollow" href="javascript:void(0)" class="icons-search category_other"></a>-->
<!--                </li>-->
<!--            </ul>-->
<!--        </div>-->
        <div class="result_search">
            Tìm thấy <strong><?php echo $total_rows ?></strong> kết quả với từ khóa <span class="ss">"<?php echo $keyword; ?>"</span>
            <div style="display: none;" id="keywordss"><?php echo $keyword; ?></div>
        </div>
        <div id="list_search">
            <ul id="list_search_df" class="data_item_search">
                <?php
                if(count($records)){
                    foreach($records as $key=>$item){
                        ?>
                        <li>
                            <div class="img_s_left">
                                <a href="<?php echo get_post_detail_url($item['id'],$item['name']) ?>" target="_blank">
                                    <img src="<?php echo $item['image'] ?>" border="0" alt="<?php echo $item['name'] ?>" style="margin:0 3px 3px 0">
                                </a>
                            </div>
                            <div class="content_s_right">
                                <h2 class="s_name" style="margin-bottom: 4px">
                                    <a href="<?php echo get_post_detail_url($item['id'],$item['name']) ?>" title="<?php echo $item['name'] ?>" target="_blank">
                                        <?php echo $item['name'] ?>
                                    </a>
                                </h2>
                                <span class="s_price"><?php echo $item['promotion']; ?> VNĐ</span>
                                <span class="s_create_date">
                                    <?php echo getLabelProvinder($item['provinder_id'],true) ?> | <?php echo date('d.m.Y',$item['modifyTime']) ?>
                                </span>
                                <span class="s_name_shop"><?php echo getByShop($item['user_id'],2); ?></span>
                            </div>
                        </li>
                        <?php	}
                } else { ?>
                    <li><div>Không tìm thấy bản ghi nào.</div></li>
            <?php } ?>
            </ul>
            <div class="divFooter clear"><?php  echo $pagination; ?></div>
        </div>
    </div>
    <div class="sidebar left">left</div>
</div>

<script type="text/javascript">

$(document).ready(function(){
	$("a.link-page").live('click',function(){
		var this_url = $(this).attr("href"),
		keyword = $('#keywordss').text();
		$.post(this_url,{keyword: keyword},function(data){
			$('#list_search').html(data);
		});
		return false;
	});
});
</script>


